package demo;

public abstract class Person {
    String name = "sss";
    public abstract void say();
}

class Teacher extends Person{
    String name = "ttt";
    @Override
    public void say() {
        System.out.println("提问问题");
    }
    public void teach(){
        System.out.println("教师在讲课");
    }
}

class Student extends Person{
    String name = "ppp";
    @Override
    public void say() {
        System.out.println("回答问题");
    }
    public void playGame(){
        System.out.println("学生在玩游戏");
    }
}
